#include <string>
#include <fstream>
#include "Vec3.h"

class PPM
{
    public:
    PPM(const std::string&file, int w,int h);

    ~PPM();

    std::ofstream& stream();
    
    private:
    std::string m_fileName;
    int m_width;
    int m_height;
    std::ofstream m_outputFile;
};

void write_color(std::ostream& out, const Color& pixel_color);